package com.sannuo.manager.service.impl;


import com.sannuo.common.domain.UserLogin;
import com.sannuo.common.domain.bo.Login;
import com.sannuo.common.domain.bo.Xtzh;
import com.sannuo.common.domain.vo.XtzhVo;
import com.sannuo.common.domain.vo.XtzhVo1;
import com.sannuo.common.domain.vo.XtzhVo2;
import com.sannuo.manager.dao.XtzhMapper;
import com.sannuo.manager.service.XtzhService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

@Service
public class XtzhServiceImpl implements XtzhService {

    @Autowired
    private XtzhMapper xtzhMapper;

    @Override
    public List<Xtzh> select(XtzhVo xtzh) {
        return xtzhMapper.select(xtzh);
    }

    @Override
    public int addUserLogin(XtzhVo2 xtzhVo2) {
        return xtzhMapper.addUserLogin(xtzhVo2);
    }

    @Override
    public int addUserStore(XtzhVo2 xtzhVo2) {
        return xtzhMapper.addUserStore(xtzhVo2);
    }

    @Override
    public int addUserRole(XtzhVo2 xtzhVo2) {
        return xtzhMapper.addUserRole(xtzhVo2);
    }

    @Override
    public int updateXtzh(XtzhVo1 xtzhVo1) {
        return xtzhMapper.updateXtzh(xtzhVo1);
    }

    @Override
    public int updateUserLogin(Login login) {
        return xtzhMapper.updateUserLogin(login);
    }

    @Override
    public int updUserLogin(UserLogin userLogin) {
        return xtzhMapper.updUserLogin(userLogin);
    }

    @Override
    public int updUser(UserLogin userLogin) {
        return xtzhMapper.updUser(userLogin);
    }
}
